#ifndef CONTACTSREQUEST_H
#define CONTACTSREQUEST_H

#include <QDebug>
#include <QHash>
#include <QStringList>

#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkCookie>
#include <QtNetwork/QNetworkReply>
#include <QtNetwork/QNetworkRequest>

#include <QtXml/QDomDocument>

#include "executionobjectinterface.h"

class ContactsRequest : public ExecutionObjectInterface
{
    Q_OBJECT

public:
    ContactsRequest(QObject *parent = 0);
    ContactsRequest(QString cookieData, QObject *parent = 0);
    ~ContactsRequest();

public slots:
    void doInBackground();
    void onPostExecute();
    void onNetworkReply(QNetworkReply *reply);

signals:
    void responseStrings(QStringList, QStringList);

private:
    QString urlPath_;

    QString cookieData_;

    QNetworkAccessManager *manager_;
};

#endif // CONTACTSREQUEST_H
